package de.clapp.client.orders;

import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;

import de.clapp.client.order.OrderModel;

public class OrderCheckListener implements ItemListener
{

    private OrderModel model;
    
    public OrderCheckListener(OrderModel model)
    {
        this.model = model;
    }
    
    @Override
    public void itemStateChanged(ItemEvent e)
    {
        if (e.getStateChange() == ItemEvent.SELECTED)
        {
            model.changeOrderStatus();
        }
    }

}
